package com.masterkey;

import android.view.View;
import android.widget.*;
import android.widget.AdapterView.OnItemSelectedListener;

public class MyOnItemSelectedListener implements OnItemSelectedListener {

	public void onItemSelected(AdapterView<?> parent, View view, int pos,
			long id) {
		Toast.makeText(parent.getContext(),
				parent.getItemAtPosition(pos).toString(),
				Toast.LENGTH_LONG).show();
	}

	public void onNothingSelected(AdapterView parent) {
		// Do nothing.
	}
}